package com.xcity.game.item.drop;

import com.alibaba.fastjson.annotation.JSONField;
import com.xcity.game.common.GameStaticConfig;

import naga.x.common.Interval;

/**
 * 权重掉落
 * @author yang.li
 *
 */
public abstract class WeightDrop extends AbstractDrop implements Interval {

	protected int weightStart, weight;
	
	public WeightDrop() {
	}
	
	public WeightDrop(int weight) {
		super(GameStaticConfig.defaultChanceBase);
	}

	@Override
	@JSONField(serialize = false)
	public int getMinVal() {
		return weightStart;
	}

	@Override
	@JSONField(serialize = false)
	public int getMaxVal() {
		return weight;
	}
	
}
